<include file="Public:header" />
<script>
$(document).ready(function(e) {
    $('.showcurimg').each(function(index, element) {
        $(this).click(function(e) {
            $(this).find('img.img').show();
        });
		$(this).mouseleave(function(e) {
            $(this).find('img.img').hide();
        });
    });
});
</script>	
<div class="container main"> <include file="Public:left" />
  <div class="w790">
    <div class="h"><a href="{:U('add')}" class="btn btn-info"><i class="glyphicon glyphicon-plus"></i>新增文章</a>
    
    
    
    
    
    
     <a data-toggle="modal" data-target="#myModal" href="javascript:void(0);" class="btn btn-info"><i class="glyphicon glyphicon-search"></i>搜索</a>
    
    
    
    
    
    
    
    
      </div>
    
    
    
    
    
    
    <volist name="list" id="vo">
    
    <div class="media NewsListMobile">
  <div class="media-left media-middle">
    <a href="{:U('Home/'.$vo['cate_name'].'/'.$vo['id'], array(), true, false, true, __SITEID__)}" target="_blank">
      <img class="media-object" src="<notempty name="vo['img_url']">{:getThumbPath($vo['img_url'])}<else/>__PUBLIC__/logo.gif</notempty>" alt="...">
    </a>
  </div>
  <div class="media-body">
    <h4 class="media-heading">{$vo.title}</h4>
    <p></p>
    <p class="optionList"><eq name="vo['status']" value="1"><span class="status1 status_btn" field="status,{$vo.id}"></span>
                <else/>
                <span class="status0 status_btn" field="status,{$vo.id}"></span></eq>  <a target="_blank" onClick="art.dialog.open('{:U('Home/'.$vo['cate_name'].'/'.$vo['id'], array(), true, false, true, __SITEID__)}', {width: 800, height: 500,lock:true,title:'文章预览'});"><i class="glyphicon glyphicon-eye-open"></i></a>  <a href="{:U('edit',array('id'=>$vo['id']))}"><i class="glyphicon glyphicon-edit"></i></a>  <a href="{:U('delete',array('id'=>$vo['id']))}" onclick="return confirm('您确定要删除这条记录吗？');"><i class="glyphicon glyphicon-trash"></i></a></p>
  </div>
</div>
    
    
    
    </volist>
    <div class="pages">{$pages}</div>
  </div>
  <div class="clear"></div>
</div>



    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="myModalLabel">搜索</h4>
          </div>
          <div class="modal-body">
             <form action="{:U('index')}" method="get" class="form-inline">
      <label class="checkbox-inline"><input name="status" type="checkbox" <eq name="status" value="1">checked="ckecked"</eq> value="1" />状态</label>
      <label class="checkbox-inline"><input name="is_hot" type="checkbox" <eq name="is_hot" value="1">checked="ckecked"</eq> value="1" />热门</label>
      <label class="checkbox-inline"><input name="is_rec" type="checkbox" <eq name="is_rec" value="1">checked="ckecked"</eq> value="1" />推荐</label>
      <label class="checkbox-inline"><input name="is_top" type="checkbox" <eq name="is_top" value="1">checked="ckecked"</eq> value="1" />置顶</label>
      
     <div style="height:10px;"></div>

      <select name="category_id" id="pid" class="form-control">
          <option value="0">请选择栏目</option>
          <volist name="pid_list" id="vo">
            <option <eq name="category_id" value="$vo['id']">selected="selected"</eq> value="{$vo.id}">{$vo.title}</option>
            <volist name="vo['sub']" id="svo">
               <option <eq name="category_id" value="$svo['id']">selected="selected"</eq> value="{$svo.id}">{:getdeepstr($svo['deep'])}{$svo.title}</option>
            </volist>
          </volist>
        </select>
        <br>

        <input type="hidden" name="pagesize" value="{$pagesize}" />
        <input type="text" name="keywords" placeholder="输入搜索关键词" class="form-control" value="{$keywords}" /><br>

        <button type="submit" class="btn btn-default">搜索</button>
      </form>
          </div>
          
        </div> 
      </div>
    </div>
<style>
   
</style>

<include file="Public:footer" />